<%
//搜索
layout("/inc/layout.html",{
title:'智慧洛龙',
keywords:'智慧洛龙',
description:'智慧洛龙',
style:'index.css'
}){
%>

 <!--网站导航菜单-->
 <% include("/inc/nav_menu.html"){} %> 

<section class="container">
<div class="row ">
            <div class="panel panel-default">
				<div class="panel-heading">
					搜索关键词“<strong class="text-danger">${keyword!}</strong>”,共找到${pager.total}条结果
				</div>
			<div class="panel-body">

              	<div class="col-sm-12">
              <% if(isNotEmpty(itemsList)){
					for(item in itemsList){
					%>
					<div class="media">
						<div class="media-body">
						 <h3> 
						  <a href="/itemList/detail/${item.unid!}"  style="text-decoration: none;">${item.serviceName!}</a>
						</h3>
						</div>
						<div class="media-right hidden-xs">
                            <div class="media-heading">
                            <input id="input-id" type="number" class="satr-rating" value="${item.starLevel!}" >
                            </div>
                        </div>
						
					   <div class="media-bottom">
							<div class="pull-right">
								    <a href="/itemList/detail/${item.unid!}" class="btn btn-primary btn-outline"><i class="iconfont icon-zhinanzhen" aria-hidden="true">办事指南</i></a>
                               <a href="/unifyDeclare/info/${item.serviceCode!}" class="btn btn-primary btn-outline"><i class="iconfont icon-qianzhengbanli" aria-hidden="true">在线办理</i></a>
							 <a href="javaScript:alert('功能正在建设中，暂无法评价！')" class="btn btn-primary btn-outline"><i class="iconfont icon-pingjia" aria-hidden="true">评价</i></a>
							</div>
						</div>
					</div>
					<hr>
					<%}}else{%>
					<div class="col-sm-12">
						<div class="text">暂时无相关办理事项</div>
					</div>
					<%}%>

					<section class="center-block text-center">
						<div class="col-sm-page-12">
							<ul class="pagination">
								<li><a href="/search?keyword=${keyword}&page=${pager.start}" aria-label="First"><span
										aria-hidden="true">首页</span></a></li>
								<li><a href="/search?keyword=${keyword}&page=${pager.pre}" aria-label="Previous"><span
										aria-hidden="true">上一页</span></a></li>
								<li><a href="" aria-label="Previous"><span
										aria-hidden="true">第&nbsp;${pageNumber}/${pager.totalPage}&nbsp;页</span></a></li>
								<li><a href="/search?keyword=${keyword}&page=${pager.next}" aria-label="Next"><span
										aria-hidden="true">下一页</span></a></li>
								<li><a href="/search?keyword=${keyword}&page=${pager.offset}" aria-label="Last">尾页</a></li>
							</ul>
						</div>
					</section>
				</div>
			</div>
		</div>
      </div>
</section>


<% } %>
<script>
    require(['modules/search'], function (search) {
        search.init();
    });

</script>
</body>
</html>